package com.lds.config.center.client.common.model.response;

import com.lds.management.center.common.model.pojo.BaseObject;
import lombok.*;

import java.util.List;
import java.util.Map;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class GetAllItemResponse extends BaseObject {
    private Long envId;
    private String envName;
    private Long clusterId;
    private String clusterName;
    private Long appId;
    private String appName;

    private Map<String, Namespace> namespaceMap;


    @Getter
    @Setter
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public static class Namespace extends BaseObject {
        private Long namespaceId;
        private String namespaceName;

        private List<Item> items;
    }

    @Getter
    @Setter
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public static class Item extends BaseObject {
        private String name;
        private String value;
    }
}
